<%@page import="java.util.List"%>
<jsp:useBean id="collection" scope="session"
             class="java.util.List<beans.SessionScopeBean>" />
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Show</title>
</head>
<body>

<form> method="Post"</form>
<TABLE BORDER>
    <tr>
        <th>Last Name</th>
        <th>First Name</th>
        <th>Second Name</th>
    </tr>
    <%for (int i = 0; i < collection.size(); i++) {
    %><tr> <%collection.get(i).getSurname();%></tr>
    <tr> <%collection.get(i).getName();%></tr>
    <tr> <%collection.get(i).getSecondName();%></tr>
    <%} %>
</table>
</body>
</html>
